home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / et / et3_0-a1.lha / et3 / src / Progress.C < prev    next >
C/C++ Source or Header  |  1992-05-05  |  811b  |  64 lines

  1. #ifdef __GNUG__
  2. #pragma implementation
  3. #endif
  4.  
  5. #include "Progress.h"
  6.  
  7. #include "Class.h"
  8.  
  9. static Progress dfltProgress;
  10. Progress *gProgress= &dfltProgress;
  11.  
  12. //---- Progress ----------------------------------------------------------------
  13.  
  14. static bool inProgress;
  15.  
  16. NewMetaImpl0(Progress, Object);
  17.  
  18. Progress::Progress()
  19. {
  20. }
  21.  
  22. void Progress::Start(char *message, int mx)
  23. {
  24.     if (inProgress)
  25.     Stop();
  26.     inProgress= TRUE;
  27.     curr= 0;
  28.     SetMax(mx);
  29.     SetMessage(message);
  30.     SetUp();
  31. }
  32.  
  33. void Progress::SetUp()
  34. {
  35. }
  36.  
  37. void Progress::SetMessage(char*)
  38. {
  39. }
  40.  
  41. bool Progress::SetVal()
  42. {
  43.     return FALSE;
  44. }
  45.  
  46. void Progress::Stop()
  47. {
  48.     Abort(TRUE);
  49.     timeout= FALSE;
  50.     inProgress= FALSE;
  51. }
  52.  
  53. void Progress::Abort()
  54. {
  55.     Abort(FALSE);
  56.     timeout= FALSE;
  57.     inProgress= FALSE;
  58. }
  59.  
  60. void Progress::Abort(bool)
  61. {
  62. }
  63.  
  64.